#include "junix.h"
#include <queue>
using namespace std;

int main(int argc, char **argv)
{
	priority_queue<int> pq;
	int v[] = {1,2,7,8,3,4,6,5,9,44,23,-9};
	for (int i=0;i<sizeof(v)/sizeof(int);i++) {
		pq.push(v[i]);
	}


	for (int i=0;i<sizeof(v)/sizeof(int);i++) {
		cout<<pq.top()<<endl;
		pq.pop();
	}


}
